package com.cn.demo.mapper;

import com.cn.demo.entity.Student;
import com.cn.demo.entity.Teaching;
import com.cn.demo.entity.TeachingExample;
import com.cn.demo.utils.Result;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface TeachingMapper {
    long countByExample(TeachingExample example);

    int deleteByExample(TeachingExample example);

    int insert(Teaching record);

    int insertSelective(Teaching record);

    List<Teaching> selectByExample(TeachingExample example);

    int updateByExampleSelective(@Param("record") Teaching record, @Param("example") TeachingExample example);

    int updateByExample(@Param("record") Teaching record, @Param("example") TeachingExample example);

    int organizationAddStudent(@Param("studentId") String studentId,@Param("organizationId") String organizationId);

    List<Student> getOrganizationStudentByOrganizationId(@Param("organizationId")String organizationId,@Param("studentId") String studentId,@Param("studentName") String studentName);

    int organizationStudentDelete(@Param("studentIdList") List<String> studentIdList,@Param("organizationId")  String organizationId);

    int joinCurriculum(@Param("studentId")String studentId,@Param("organizationId") String organizationId);

    int organizationStudentDeleteOne(String studentId);

}